package com.shuyun.controller;

import com.shuyun.jcss.tianji.client.boot.starter.annotation.TianjiRefresh;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dashuai
 */
@RestController
public class HelloController {

    @TianjiRefresh
    @Value("${name:tom}")
    private String name;

    @TianjiRefresh
    @Value("${age}")
    public Integer age;

    @Value("${age1}")
    public Integer age1;

    @GetMapping("hello")
    public String hello(){
        return "hello name: " + name + ", age: " + age + ", age1: " + age1;
    }

}
